import request from '@/utils/request'

// 查询志愿院校信息列表
export function listVolunteerCollege(query) {
  return request({
    url: '/baoming/volunteerCollege/list',
    method: 'get',
    params: query
  })
}

// 查询志愿院校信息详细
export function getVolunteerCollege(id) {
  return request({
    url: '/baoming/volunteerCollege/' + id,
    method: 'get'
  })
}

// 新增志愿院校信息
export function addVolunteerCollege(data) {
  return request({
    url: '/baoming/volunteerCollege',
    method: 'post',
    data: data
  })
}

// 修改志愿院校信息
export function updateVolunteerCollege(data) {
  return request({
    url: '/baoming/volunteerCollege',
    method: 'put',
    data: data
  })
}

// 删除志愿院校信息
export function delVolunteerCollege(id) {
  return request({
    url: '/baoming/volunteerCollege/' + id,
    method: 'delete'
  })
}
